package com.our.sys.project1.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.springside.modules.orm.grid.ViewField;

/**
 * 采购计划明细
 * @author acer
 *
 */
@Entity
@Table(name = "C_PurchasePlanDetail")
public class PurchasePlanDetail implements Serializable {
    private static final long serialVersionUID = -1589573399936938865L;
    @ViewField
    private Long id;
    @ViewField
    private Long purchasePlanId;
    @ViewField(header = "品名", width = 200, align = "left")
    private String name;
    @ViewField(header = "规格", width = 100, align = "left")
    private String spec;
    @ViewField(header = "单位", width = 100, align = "left")
    private String unit;
    @ViewField(header = "计划数量", width = 150, align = "left")
    private String planAmount;
    @ViewField(header = "计划金额", width = 150, align = "left")
    private String planMoney;

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "C_PurchasePlanDetail")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPurchasePlanId() {
        return purchasePlanId;
    }

    public void setPurchasePlanId(Long purchasePlanId) {
        this.purchasePlanId = purchasePlanId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getPlanAmount() {
        return planAmount;
    }

    public void setPlanAmount(String planAmount) {
        this.planAmount = planAmount;
    }

    public String getPlanMoney() {
        return planMoney;
    }

    public void setPlanMoney(String planMoney) {
        this.planMoney = planMoney;
    }

}
